<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<title>javascript click</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<style type="text/css">
	body
	{
		margin:0;
		padding:0;
	}
	</style>
</head>
<body>
<h1>javascript click radio</h1>
<p><a href="#" id="test">I have a onclick event</a>
</p>
<script type="text/javascript">
document.getElementById('test').onclick = function()
{
	alert('a');
	return false;
}
document.getElementById('test').click();
</script>
<form>
<input type="radio" name="gender" id="gender" value="1" />I have a onclick event
</form>
<script type="text/javascript">
document.getElementById('gender').onclick = function()
{
	alert('radio');
}
document.getElementById('gender').click();
</script>
<form>
<input type="radio" name="asdf" id="asdf" value="1" />I do not have a onclick event
</form>
<script type="text/javascript">
document.getElementById('asdf').click();
</script>
</body>
</html>